<?phpclass GamesEditForm extends CFormModel{    public $game_name;	public function rules()	{		return array(			array('game_name', 'required'),        );	}	 	//字段标签	public function attributeLabels()    {		return array(			'game_name' => "游戏名称",		);	}    /**     * @return bool     */	public function edit($id)	{	    $goods = actGames::model()->findByPk($id);        $goods->game_name = $this->game_name;        if ($goods->save()){            return true;        }else{            return false;        }	}	}